package Demo3_12;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User：Lenovo
 * Date:2025-03-12
 * Time:16:49
 */
public class Test {
    public static void main(String[] args) {
        int[] array={10,5,12,13,6};
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        for(int x:array){
            binarySearchTree.insert(x);
        }
       BinarySearchTree.TreeNode search=binarySearchTree.search(12);
        System.out.println(search.val);
    }
}
